package com.sailing.xjpb.ipaas.client.common;

/**
 * ipaas客户端全局变量配置
 *
 * @author YW
 */
public class IpaasClientConstants {

    private IpaasClientConstants() {

    }

    /**
     * 当前请求头中token对应的字段值
     */
    public static final String AUTHORIZATION = "Authorization";


    public static final String AUTHORIZATION_V1 = "Ipaas-Token";
    /**
     * 当前请求头中Ipaas-Session-id对应的字段值
     */
    public static final String IPAAS_SESSION_ID = "Ipaas-Session-Id";

    /**
     * 当前请求头中CURRENT_USER_INFO对应的字段值
     */
    public static final String ENCODE_KEY = "ENCODE_KEY";

    /**
     * 当前请求头中CURRENT_USER_INFO对应的字段值
     */
    public static final String CURRENT_USER_INFO = "CURRENT_USER_INFO";

    /**
     * url拦截规则authc
     */
    public static final String URL_AUTHC = "authc";
    /**
     * url拦截规则anon
     */
    public static final String URL_ANON = "anon";
    /**
     * bearer前缀
     */
    public static final String BEARER_TOKEN_PREFIX = "bearer";

    /**
     * 当前请求头中Ipaas-Tenant-Code对应的字段值 since V2.1
     */
    public static final String HEADER_TENANT_CODE = "Ipaas-Tenant-Code";

    /**
     * add by YaoWei 尝试解决服务调用ipaas接口，ip获取到容器ip问题
     */
    public static final String X_FORWARDED_FOR = "X-Forwarded-For";
}
